<?php
/**
 * 导航栏
 */
namespace App\Model;

use Illuminate\Database\Eloquent\Model;


class Nav extends Model
{
    protected $table = 'nav';
    protected $guarded = [];

    /**
     * 导航栏
     *
     * @return void
     */
    public static function getHomeNavs()
    {
        $list   =   self::orderBy('sort','asc')->get(['name','route']);
        return $list;
    }
}
